class CreatePeople < ActiveRecord::Migration
  def self.up
    create_table :people do |t|
      t.column :name,       :string, :limit => 40, :null => false
      t.column :mobile,     :string, :limit => 18
      t.column :phone,      :string, :limit => 25
      t.column :address,    :string
      t.column :postcode,   :string, :limit => 16
      t.column :company_id, :integer      
    end
  end

  def self.down
    drop_table :people
  end
end
